package Day02;

public class Demo01 {
    public static void main(String[] args) {
        //格式1
        int[] a = {10,11,12,13,14};
        //赋值,改变数组中的值
        a[0] = 100;
        //输出
        System.out.println(a[0]);
        //格式2
        int[] b = new int[3];
        //获取数组名称 数组名称.length
        //遍历数组内容
//        for (int i = 0; i < a.length; i++) {
//            System.out.println(a[i]);
//        }
        //增强for循环
        for(int c : a ){
            System.out.print(c + " ");
        }

    }
}
